<template>
	<view class="page">
		<view class="header">
			<view class="companyBox">
				<view class="companyName">
					{{userinfo.user.realname || ''}}
				</view>
				
				<view class="state" >
					{{statusshow(userinfo.status)}}
				</view>
			</view>
			<view class="list">
				<view class="left">
					电&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp话
				</view>
				<view class="right">
					{{userinfo.user.mobile || ''}}
				</view>
			</view>
			<view class="list">
				<view class="left">
					详情地址
				</view>
				<view class="right">
					{{userinfo.areaRegion.mergerName || ''}}
				</view>
			</view>
			<view class="list">
				<view class="left">
					所申请的镇
				</view>
				<view class="right">
					{{userinfo.areaRegion.name || ''}}
				</view>
			</view>
			<view class="list" >
				<view class="left">
					当前状态
				</view>
				<view class="right" style="color: #FF9C24;">
					{{statusshow(userinfo.status)}}
				</view>
			</view>
<!-- 			<view class="list">
				<view class="left">
					备&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp注
				</view>
				<view class="right">
					{{custom.customFlowList[0].remark||"未填写"}}
				</view>
			</view> -->
		</view>
		<view class="compelet" @click="back">
			返回
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:0,
				userinfo:{},
			}
		},
		onLoad(options) {
			this.id = options.id
			this.keHuList()
		},
		methods:{
			statusshow(status) {
				let text = ''
				if (status == 0) {
					text = '待审核'
				} else if (status == 1) {
					text = '已审核'
				} else if (status == 2) {
					text = '审核驳回'
				} else {
					text = '未知状态'
				}
				return text
			},
			keHuList(){
				this.$axios.request(`${this.$api.getTownerDetailApi}?id=${this.id}`,"GET").then((val) => {
					this.userinfo = val.data
				})
			},
			back() {
				uni.reLaunch({
					url: '/pages/mine/zhenZhangList'
				})
			}
		}
	}
</script>

<style>
	.page {
		width: 100%;
		height: 100vh;
		overflow-y: auto;
		background-color: #f9f9f9;
	}

	.header {
		width: 100%;
		height: 471rpx;
		background-color: #FFFFFF;
		margin-top: 16rpx;
	}

	.companyBox {
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 72rpx;
		padding: 0 32rpx;
	}

	.companyName {
		height: 40rpx;
		font-size: 32rpx;
		font-family: "PingFang SC";
		font-weight: 600;
		line-height: 40rpx;
		color: #333333;
	}

	.state {
		width: 80rpx;
		height: 42rpx;
		font-size: 28rpx;
		font-family: "PingFang SC";
		font-weight: 400;
		line-height: 42rpx;
		background-color: #2E6ADF;
		border-radius: 4rpx;
		text-align: center;
		color: #FFFFFF;
	}

	.list {
		display: flex;
		justify-content: flex-start;
		align-items: center;
		width: 100%;
		height: 65rpx;
		padding: 0 32rpx;
	}

	.left {
		width: 140rpx;
		height: 65rpx;
		margin-right: 32rpx;
		line-height: 65rpx;
		font-size: 28rpx;
		font-family: "PingFang SC";
		font-weight: 600;
		line-height: 65rpx;
		color: #333333;
	}

	.right {
		height: 65rpx;
		line-height: 65rpx;
		font-size: 28rpx;
		font-family: "PingFang SC";
		font-weight: 300;
		line-height: 65rpx;
		color: #707070;
	}

	.footer {
		width: 100%;
		height: 789rpx;
		margin-top: 16rpx;
		padding: 0 32rpx;
		background-color: #FFFFFF;
	}

	.u-node {
		width: 44rpx;
		height: 44rpx;
		border-radius: 100rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		background: #d0d0d0;
	}

	.u-order-title {
		color: #333333;
		font-weight: bold;
		font-size: 32rpx;
	}

	.u-order-desc {
		color: rgb(150, 150, 150);
		font-size: 32rpx;
		margin-bottom: 6rpx;
	}

	.u-order-time {
		color: rgb(200, 200, 200);
		font-size: 30rpx;
	}
	.modelTxt {
		width: 100%;
		height: 80rpx;
		font-size: 32rpx;
		font-family: "PingFang SC";
		font-weight: 600;
		line-height: 80rpx;
		padding:  0 32rpx;
		color: #333;
		background-color: #E8F0FF;
		text-align: left;
	}
	.select {
		width: 100%;
		padding: 0 32rpx;
		margin: 32rpx auto;
	}
	u-radio-group {
		display: flex;
		justify-content: center;
	}
	
	.item {
		width: 750rpx;
		/* height: 136rpx; */
		background-color: #FFFFFF;
		margin-top: 16rpx;
		/* background-color: red; */
	}
	
	.bottom,
	.top {
		display: flex;
		justify-content: flex-start;
		align-items: center;
		width: 100%;
		padding: 0 32rpx;
		/* margin: 0 32rpx; */
	}
	
	.top {
		height: 68rpx;
	}
	
	.bottom {
		border-top: 1rpx solid #E1E1E1;
	}
	
	.txt,
	.I {
		height: 40rpx;
		font-size: 28rpx;
		font-family: "PingFang SC";
		font-weight: 600;
		line-height: 40rpx;
		color: #333333;
	}
	
	.I {
		color: #F35B47;
		margin-left: 10rpx;
		line-height: 54rpx;
	}
	.put {
		width: 646rpx;
		height: 240rpx;
		border: 1rpx solid #E1E1E1;
		margin: 12rpx auto 0;
		padding:  20rpx;
	}
	.submitBox {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
		height: 96rpx;
		padding: 0 32rpx;
		background-color: #FFFFFF;
	}
	.submit {
		width: 686rpx;
		height: 64rpx;
		border-radius: 4rpx;
		background-color: #2E6ADF;
		font-size: 32rpx;
		font-family: "PingFang SC";
		font-weight: 400;
		line-height: 64rpx;
		text-align: center;
		color: #FFFFFF;
	}
	.compelet {
		width: 686rpx;
		height: 80rpx;
		background-color: #2E6ADF;
		opacity: 1;
		border-radius: 4rpx;
		font-size: 32rpx;
		font-family: "PingFang SC";
		font-weight: 400;
		line-height: 80rpx;
		margin: 24rpx auto 0;
		text-align: center;
		color: #FFFFFF;
		opacity: 1;
	}
</style>
